package _10创建线程_继承Thread类;

public class DemoExtendsThread {
    public static void main(String[] args) {
        //创建线程类
        MyThread t =new MyThread();

        //启动线程
        t.start();

        for (int i = 0; i < 1000; i++) {
            long start= System.currentTimeMillis();
            System.out.println("i="+i);


        }
    }
}
